<?php
// +----------------------------------------------------------------------
// | ADM Software [ 我宁可 为做过的事而后悔，也不想 因为没尝试而后悔。 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 扬州安蝶梦电子商务有限公司 All rights reserved.
// +----------------------------------------------------------------------
// | Author: 曹梦龙 <138888611@qq.com> <http://www.andiemeng.com>
// +----------------------------------------------------------------------
namespace Org\Util;
require_once 'httpful/bootstrap.php';

class HttpTools {
    //使用HttpFul 发起PSOT json请求
    public function POST_JSON($url,$body){ 
         
         $response = \Httpful\Request::post($url)
                ->sendsJson()
                ->body($body)
                ->send(); 
         return $response->body;
    }
}
